package com.hospital.demo.util;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Component
public class LUIFormatUtil {

    public String formatTo(String string){
        List<String> str=new ArrayList<String>();
        string = ((string.replace("{","")).replace("}","")).replaceAll("\"", "");
        str = Arrays.asList(string.split(":"));
        String strf = str.get(1);
        System.out.println(strf);
        return strf;
    }

}
